package com.ywk.pattern._14_observer._14_2;

public class StockObserver {
    private String name;
    private Secretary sub;

    public StockObserver(String name, Secretary sub) {
        this.name = name;
        this.sub = sub;
    }

    public void Update() {
        System.out.println(sub.getAction()+this.name+"关闭股票，继续工作");
    }
}
